//package io.zhengsh.order.config.datasource;
//
//import org.springframework.boot.actuate.health.HealthIndicator;
//import org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
//@Configuration
//public class DataSourceConfig {
//
//    @Bean
//    public HealthIndicator dbHealthIndicator(DataSource dataSource) {
//        DataSourceHealthIndicator indicator = new DataSourceHealthIndicator(dataSource);
//        indicator.setQuery("select 1");
//        return indicator;
//    }
//}